//
//  AuctionHomeModel.h
//  MyNewProject
//
//  Created by 王春辉 on 2020/1/11.
//  Copyright © 2020年 sun. All rights reserved.
//

#import "WJBaseModel.h"
#import "ProductModel.h"

NS_ASSUME_NONNULL_BEGIN

#pragma mark -- mark 首页优惠券model
@interface AuctionHomeCouponModel : WJBaseModel
@property (nonatomic, copy) NSString *ID;
@property (nonatomic, copy) NSString *type;
@property (nonatomic, copy) NSString *money;
@property (nonatomic, copy) NSString *tiaojian;
@property (nonatomic, copy) NSString *youxiaoqi;
@property (nonatomic, copy) NSString *is_tuijian;
//@property (nonatomic, copy) NSString *msg;
@end

#pragma mark -- mark 首页商店model
@interface AuctionHomeShopModel : WJBaseModel
@property (nonatomic, copy) NSString *ID;
@property (nonatomic, copy) NSString *name;
@property (nonatomic, copy) NSString *describe;
@property (nonatomic, copy) NSString *img_bg;
@property (nonatomic, copy) NSString *img;
@property (nonatomic, copy) NSString *pass;
@property (nonatomic, copy) NSString *is_tuijian;
@property (nonatomic, copy) NSString *sort;
@end

#pragma mark -- mark 商家首页数据
@interface AuctionHomeDataModel : WJBaseModel
@property (nonatomic, strong) AuctionHomeCouponModel *coupon;
@property (nonatomic, strong) NSArray <ProductDetailModel *>*goods;
@property (nonatomic, strong) NSArray <AuctionHomeShopModel *>*shop;
@end

#pragma mark -- mark 新人专享单独接口
@interface NewUserProductDataModel : WJBaseModel
@property (nonatomic, strong) NSArray <ProductDetailModel *>*data;
@end

#pragma mark -- mark 商家首页model
@interface AuctionHomeModel : WJBaseModel
@property (nonatomic, strong) AuctionHomeDataModel *data;
@end

NS_ASSUME_NONNULL_END
/*
{
    "status": "ok",
    "data": {
        "coupon": {
            "id": "1",
            "type": "1",
            "money": "999",
            "tiaojian": "200",
            "youxiaoqi": "2020-01-25 13:39:46",
            "is_tuijian": "1",
            "msg": ""
        },
        "goods": [
                  {
                      "id": "383",
                      "name": "翡翠A货-“百财”",
                      "img": "http://apiadmin.yupinyouxuan.com/upload/goods/2019_11_19/f4c083f5ad8b3feb4a51384ab80ed0b4.jpg",
                      "price": "1188"
                  },
                  {
                      "id": "384",
                      "name": "翡翠A货-“福瓜”",
                      "img": "http://apiadmin.yupinyouxuan.com/upload/goods/2019_11_19/dc5ae8075da5a372ea9d279caa7ac18c.jpg",
                      "price": "1288"
                  }
                  ],
        "shop": [
                 {
                     "id": "1",
                     "name": "淘宝",
                     "describe": "一家专业的铺位",
                     "img_bg": "http://apiadmin.yupinyouxuan.com/upload/test/shop_bg.png",
                     "img": "http://apiadmin.yupinyouxuan.com/upload/test/jifenshangcheng.png",
                     "pass": "123456",
                     "is_tuijian": "1",
                     "sort": "999"
                 },
                 {
                     "id": "2",
                     "name": "天猫",
                     "describe": "一家专业的商铺",
                     "img_bg": "http://apiadmin.yupinyouxuan.com/upload/test/shop_bg.png",
                     "img": "http://apiadmin.yupinyouxuan.com/upload/test/jifenshangcheng.png",
                     "pass": "123456",
                     "is_tuijian": "1",
                     "sort": "999"
                 },
                 {
                     "id": "4",
                     "name": "苏宁",
                     "describe": "苏宁专卖",
                     "img_bg": "http://apiadmin.yupinyouxuan.com/upload/test/shop_bg.png",
                     "img": "http://apiadmin.yupinyouxuan.com/upload/test/jifenshangcheng.png",
                     "pass": "123456",
                     "is_tuijian": "1",
                     "sort": "999"
                 }
                 ]
    }
}
*/
